package per.jdz.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import per.jdz.demo.config.FilePathConfigProperty;
import per.jdz.demo.domain.entity.OriginLandData;
import per.jdz.demo.domain.entity.OriginSecondHouseData;
import per.jdz.demo.domain.vo.reponse.ApiResult;
import per.jdz.demo.service.OriginLandDataService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Jdz
 * @date 2025/1/14
 */
@RestController
@Slf4j
@RequestMapping("/origin/secondHouse")
public class OriginSecondDataController {


    @PostMapping("/addNewData")
    public ApiResult addNewData(@RequestBody List<OriginSecondHouseData> originSecondHouseDataList) {
//        originHouseDataService.saveBatch(originHouseDataList);
        System.out.println(originSecondHouseDataList);
        return ApiResult.success();
    }
}
